package com.zg.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zg.dao.LiveStreamMapper;
import com.zg.pojo.LiveStream;
import com.zg.service.LiveStreamService;

@Service("liveStream")
public class LiveStreamServiceImpl implements LiveStreamService{

	@Resource
	private LiveStreamMapper liveStreamDao;
	
	@Override
	public LiveStream getLiveStreamById(int id) {
		return this.liveStreamDao.selectByPrimaryKey(id);
	}

	@Override
	public int insert(LiveStream record) {
		return this.liveStreamDao.insert(record);
	}

	@Override
	public int updateLiveStreamByPrimaryKeySelective(LiveStream record) {
		return this.liveStreamDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int deleteLiveStreamByPrimaryKey(int id) {
		return this.liveStreamDao.deleteByPrimaryKey(id);
	}

	@Override
	public List<LiveStream> getAll() {
		return this.liveStreamDao.getAll();
	}
	
}
